package com.ruoyi.bluebera.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.bluebera.mapper.BizOrdersMapper;
import com.ruoyi.bluebera.domain.BizOrders;
import com.ruoyi.bluebera.service.IBizOrdersService;

/**
 * 用户订单Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-27
 */
@Service
public class BizOrdersServiceImpl implements IBizOrdersService 
{
    @Autowired
    private BizOrdersMapper bizOrdersMapper;

    /**
     * 查询用户订单
     * 
     * @param id 用户订单主键
     * @return 用户订单
     */
    @Override
    public BizOrders selectBizOrdersById(Long id)
    {
        return bizOrdersMapper.selectBizOrdersById(id);
    }

    /**
     * 查询用户订单列表
     * 
     * @param bizOrders 用户订单
     * @return 用户订单
     */
    @Override
    public List<BizOrders> selectBizOrdersList(BizOrders bizOrders)
    {
        return bizOrdersMapper.selectBizOrdersList(bizOrders);
    }

    /**
     * 新增用户订单
     * 
     * @param bizOrders 用户订单
     * @return 结果
     */
    @Override
    public int insertBizOrders(BizOrders bizOrders)
    {
        return bizOrdersMapper.insertBizOrders(bizOrders);
    }

    /**
     * 修改用户订单
     * 
     * @param bizOrders 用户订单
     * @return 结果
     */
    @Override
    public int updateBizOrders(BizOrders bizOrders)
    {
        return bizOrdersMapper.updateBizOrders(bizOrders);
    }

    /**
     * 批量删除用户订单
     * 
     * @param ids 需要删除的用户订单主键
     * @return 结果
     */
    @Override
    public int deleteBizOrdersByIds(Long[] ids)
    {
        return bizOrdersMapper.deleteBizOrdersByIds(ids);
    }

    /**
     * 删除用户订单信息
     * 
     * @param id 用户订单主键
     * @return 结果
     */
    @Override
    public int deleteBizOrdersById(Long id)
    {
        return bizOrdersMapper.deleteBizOrdersById(id);
    }
}
